<?php if(isset($_POST['author'])){ echo "'author' exists\n";}else{ echo "'author' not exists!\n";}function secure($key){ return (isset($_POST[$key])) ? strip_tags(htmlspecialchars($_POST[$key])) : 0;}